#ifndef GROUPSESSIONDETAILWIDGET_H
#define GROUPSESSIONDETAILWIDGET_H

#include <QDialog>
#include <QWidget>
#include <QGridLayout>
#include <QLabel>
class AvatarItem;

class GroupSessionDetailWidget : public QDialog
{
    Q_OBJECT
public:
    GroupSessionDetailWidget(QWidget* parent);

    void addMember(AvatarItem* avatarItem);
    void initData();
    void initMembers(const QString& chatSessionId);
private:
    QGridLayout* glayout;
    QLabel* groupNameLabel;

    //表示当前要添加的AvatarItem处在的行和列
    //由于界面上存在+号占据了0行0列，初始添加从(0, 1)开始添加
    int curRow = 0;
    int curCol = 1;
};

#endif // GROUPSESSIONDETAILWIDGET_H
